package com.leiqichao.backend.service;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.leiqichao.backend.entity.StatVisit;

public interface StatVisitService {
    void recordVisit(String ip, String path, String referrer, String userAgent) throws JsonProcessingException;
    // 如果不需要自定义分页逻辑，此方法可省略
    IPage<StatVisit> page(Page<StatVisit> page, QueryWrapper<StatVisit> query);

    // 获取今日访问量
     Long getDailyAccessCount();
}